import org.springframework.stereotype.Service;

@Service
public class OrderServiceImpl implements OrderService {

    @Override
    public void add(String pname, int number) {
        System.out.println("购买产品: " + pname + ", 数量: " + number);
    }

    @Override
    public void delete(String pname) {
        System.out.println("删除购物车中的产品: " + pname);
    }

    @Override
    public int find(String pname) {
        System.out.println("查询购物车中产品: " + pname + " 的数量");
        // 模拟返回一个数量
        return 10;
    }
}
